package com.common.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;


@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("系统日志Vo")
public class YsLogsVo implements Serializable {

    @ApiModelProperty("id")
    private Long id;


    @ApiModelProperty("ip地址")
    private String ipAddress;


    @ApiModelProperty("操作类型(enum):主要是select,insert,update,delete")
    private String operation;

    @ApiModelProperty("操作人id")
    private Long operationId;


    @ApiModelProperty("操作详情信息")
    private String remark;


    @ApiModelProperty("目标类名称")
    private String targetName;

    @ApiModelProperty("请求参数")
    private String parameter;

    @ApiModelProperty("执行结果")
    private String result;


    @ApiModelProperty("目标接口名称")
    private String serviceName;


    @ApiModelProperty("异常类型")
    private String errorType;


    @ApiModelProperty("异常信息")
    private String errorInfo;


    @ApiModelProperty("创建人")
    private String created;


    @ApiModelProperty("创建时间")
    private LocalDateTime createdDate;


    @ApiModelProperty("更新人")
    private String update;


    @ApiModelProperty("更新时间")
    private LocalDateTime updateDate;

    private static final long serialVersionUID = 1L;
}